//
//  AToLeadViewController.m
//  Restaurant
//
//  Created by wanghuan on 15/4/20.
//  Copyright (c) 2015年 wanghuan. All rights reserved.
//

#import "AToLeadViewController.h"

@interface AToLeadViewController ()

@end

@implementation AToLeadViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    

    
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (IBAction)learnBtn:(UIButton *)sender {
    
    if (sender.tag == 1) {
        
        MenuViewController *mvc = [[MenuViewController alloc]init];
        [self.navigationController pushViewController:mvc animated:YES];
        return;
    }
    
    RegisterViewController *rvc = [[RegisterViewController alloc]init];
    [self.navigationController pushViewController:rvc animated:YES];
  
}
@end
